all:
	gradle build
	java -jar build/libs/apksig.jar verify --min-sdk-version 28 --print-certs -v test.apk
verify:
	@openssl rsa -pubin -inform DER -in public_key.der > public_key.pem
	@openssl dgst -sha256 -verify public_key.pem -signature sig_1.bin signed_data.bin
test:
	@javac RSATest.java | java RSATest